package com.cgtong.android.adapter;

import android.support.annotation.Nullable;

import com.cgtong.android.R;
import com.cgtong.android.bean.AdviseBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

public class AdviseAdapter extends BaseQuickAdapter<AdviseBean, BaseViewHolder> {


    public AdviseAdapter(@Nullable List<AdviseBean> data) {
        super(R.layout.adapter_my_advise, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, AdviseBean item) {

        helper.setText(R.id.date_txt, item.getAskDate());
        helper.setText(R.id.content_txt, item.getContent());
    }
}
